package com.yang.serivce;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author yangbo
 * @date 2019-09-11 9:32
 */
@FeignClient("consul-provider")
public interface UserService {

    /**
     * user接口
     * @param name
     * @return
     */
    @RequestMapping(value = "/sayHello",method = RequestMethod.GET)
    String sayHello(@RequestParam(value = "name") String name);
}
